package model;

import javax.xml.bind.annotation.XmlAttribute;
import javax.xml.bind.annotation.XmlRootElement;

/**
 * Class store information about authors
 */
@XmlRootElement(name = "author")
public class Author
{
	/**
	 * Author name
	 */
	@XmlAttribute
	private String name = "";
	
	/**
	 * Creates author with empty fields
	 */
	public Author() {}
	
	/**
	 * Creates author
	 * @param name - name of author
	 */
	public Author(String name)
	{
		this.name = name;
	}

	/**
	 * @return author name
	 */
	public String getName()
	{
		return name;
	}
}
